package com.cuoyi.coupon.mall.controller;

import com.cuoyi.coupon.mall.common.ApiResult;
import com.cuoyi.coupon.mall.common.Entry;
import com.cuoyi.coupon.mall.model.res.TransCodeAppResp;
import com.cuoyi.coupon.mall.model.res.TransCodeResp;
import com.cuoyi.coupon.mall.service.TransCodeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhang.cheng
 * 2022/3/20 4:47 PM
 */
@RestController
@Api(value = "转码c端接口", tags = "转码c端接口")
@RequestMapping(value = Entry.APP + "/transcodeApp")
public class TransCodeAppController {

    @Resource
    private TransCodeService transCodeService;

    @GetMapping(value = "/getAppData")
    @ApiOperation(value = "获取c端转码数据", notes = "获取c端转码数据")
    public ApiResult<TransCodeAppResp> getAppData(String transCode) {
        return ApiResult.ok(transCodeService.getAppData(transCode));
    }

}
